package com.cn.design.adapter.classes;

/**
 * @author: zhangyiting
 * @description:
 * @createDate: Created in 2022/7/7 22:24
 * @version: 1.0
 */
//定义适配器类（SD兼容TF）
public class SDAdapterTF extends TFCardImpl implements SDCard {
    @Override
    public String readSD() {
        System.out.println("adapter read tf card ");
        return readTF();
    }

    @Override
    public void writeSD(String msg) {
        System.out.println("adapter write tf card");
        writeTF(msg);
    }
}